/**
 * 
 */
package org.unisannio.picture.broadcast.remote;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

/**
 * @author Fabio Melillo
 *
 */
public class MyReceiver extends BroadcastReceiver {
	


	/* (non-Javadoc)
	 * @see android.content.BroadcastReceiver#onReceive(android.content.Context, android.content.Intent)
	 */
	@Override
	public void onReceive(Context context, Intent intent) {
		System.out.println("MyReceiver - onReceive");
		Intent i=new Intent(context,MainActivity.class);
		i.putExtra("REQCODE", intent.getIntExtra("REQCODE", MainActivity.LOCAL_VALUE));
		i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
		context.startActivity(i);
	}

}
